package com.tucy.logistics.common.entity.user;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tucy.logistics.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

/**
* 系统文件表
* @TableName system_captcha
*/
@Setter
@Getter
public class SystemCaptcha extends BaseEntity implements Serializable {

    /**
    * uuid
    */
    @NotBlank(message="[uuid]不能为空")
    @Size(max= 40,message="编码长度不能超过40")
    @ApiModelProperty("uuid")
    @Length(max= 40,message="编码长度不能超过40")
    private String uuid;
    /**
    * 验证码
    */
    @NotBlank(message="[验证码]不能为空")
    @Size(max= 40,message="编码长度不能超过40")
    @ApiModelProperty("验证码")
    @Length(max= 40,message="编码长度不能超过40")
    private String captcha;
    /**
    * 过期时间
    */
    @NotNull(message="[过期时间]不能为空")
    @ApiModelProperty("过期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date expireTime;

}
